package com.meteor.raft.misc;

import com.meteor.raft.constant.CommonConstant;
import org.springframework.stereotype.Component;

/**
 * @author gang.wang1903@xiaobao100.cn
 * @Date: 2019/7/16 9:36 AM
 */
@Component
public class UrlUtil {


    public static String buildURL(String ip, String api) {
        return "http://" + ip + CommonConstant.METEOR_RAFT_CONTEXT + api;
    }
}
